package com.midea.ai.air.common;

import com.midea.ai.air.R;
import com.midea.ai.air.ui.home.data.ParaValueModel;
import com.midea.ai.air.ui.home.data.SceneModel;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by ouyangdi on 2015/12/15.
 * 全局变量持有类
 */
public class Global {

    /**
     * 是否锁定滑动事件
     */
    public static boolean mIsScrollLocked = false;

    /**
     * 情景数据(数据未接入，暂时给几个缺省值)
     */
    public static List<ParaValueModel> mSceneParasCom = new ArrayList<>();
    static {
        mSceneParasCom.add(new ParaValueModel("温度", "26°"));
        mSceneParasCom.add(new ParaValueModel("湿度", "50%"));
        mSceneParasCom.add(new ParaValueModel("净化器", "开", ParaValueModel.TYPE_SWITCH));
    }

    public static List<ParaValueModel> mSceneParasSleep = new ArrayList<>();
    static {
        mSceneParasSleep.add(new ParaValueModel("温度", "18°"));
        mSceneParasSleep.add(new ParaValueModel("湿度", "50%"));
        mSceneParasSleep.add(new ParaValueModel("净化器", "开", ParaValueModel.TYPE_SWITCH));
    }

    public static List<SceneModel> mScenes = Arrays.asList(new SceneModel(R.drawable.air_home_edit_room_comfor, "舒适", mSceneParasCom),
                                                           new SceneModel(R.drawable.air_home_edit_room_sleep, "睡眠", mSceneParasSleep));

    public static final String[] sTempValue = new String[] {"5°","6°","7°","8°","9°","10°","11°","12°","13°","14°","15°","16°",
            "17°","18°","19°","20°","21°","22°","23°","24°","25°","26°","27°","28°","29°","30°","31°","32°","33°","34°","35°"};
    public static final String[] sHumValue = new String[] {"5%","10%","15%","20%","25%","30%","35%","40%","45%","50%","55%","60%","65%","70%","75%",
            "80%","85%","90%","95%"};

    /**
     * 外部各网络地址
     */
    public static final String afterSaleUrl = "http://w.midea.com/my/warranty/addwarranty";
    public static final String progressUrl = "http://w.midea.com/my/warranty/warrantylistbymobile";
    public static final String branchUrl = "http://w.midea.com/service/search/network?mdtag=1.1.4";
    public static final String afterSalePhone = "400-8899-315";
    public static final String shopUrl = "http://www.midea.com/cn/h5/";
    public static final String mideaFansUrl = "http://smartbbs.midea.com/msmart.php";

}
